﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AlipayPay.Domain
{
    /// <summary>
    /// 购物车
    /// </summary>
    [SugarTable("t_supplier", TableDescription = "购物车")]
    public class ShoppingCart
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", ColumnDescription = "供应商名称")]
        public string cName { get; set; }

        /// <summary>
        /// 社会企业信用代码
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", ColumnDescription = "社会企业信用代码")]
        public string cEnterpriseCreditCode { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", IsNullable = true, ColumnDescription = "联系人")]
        public string cContacts { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", ColumnDescription = "联系电话")]
        public string cMobile { get; set; }

        /// <summary>
        /// 收货人所在省
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", ColumnDescription = "收货人所在省")]
        public string cReceiverProvince { get; set; }

        /// <summary>
        /// 省Code
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(20)", ColumnDescription = "省Code")]
        public string cProvinceCode { get; set; }

        /// <summary>
        /// 收货人所在城市
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", ColumnDescription = "收货人所在城市")]
        public string cReceiverCity { get; set; }

        /// <summary>
        /// 城市Code
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(20)", ColumnDescription = "城市Code")]
        public string cCityCode { get; set; }

        /// <summary>
        /// 收货人所在街道
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", ColumnDescription = "收货人所在街道")]
        public string cReceiverDistrict { get; set; }

        /// <summary>
        /// 街道Code
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(20)", IsNullable = true, ColumnDescription = "街道Code")]
        public string cDistrictCode { get; set; }

        /// <summary>
        /// 收货人详细地址
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", IsNullable = true, ColumnDescription = "收货人详细地址")]
        public string cReceiverAddress { get; set; }

        /// <summary>
        /// 入驻时间
        /// </summary>
        [SugarColumn(ColumnDataType = "datetime", IsNullable = true, ColumnDescription = "入驻时间")]
        public DateTime? tSettledTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", IsNullable = true, ColumnDescription = "备注")]
        public string Remarks { get; set; }

        /// <summary>
        /// 登录用户名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", ColumnDescription = "登录用户名称")]
        public string LoginUserName { get; set; }

        /// <summary>
        /// 登录用户密码
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(200)", ColumnDescription = "登录用户密码")]
        public string LoginUserPassword { get; set; }

        /// <summary>
        /// 是否正常
        /// </summary>
        [SugarColumn(ColumnDataType = "int", DefaultValue = "0", ColumnDescription = "1正常 0不正常")]
        public bool IsNormal { get; set; } = false;

        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnDataType = "int", DefaultValue = "0", ColumnDescription = "是否删除")]
        public bool IsDel { get; set; } = false;

        /// <summary>
        /// 删除时间
        /// </summary>
        [SugarColumn(ColumnDataType = "datetime", IsNullable = true, ColumnDescription = "删除时间")]
        public DateTime? DelTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDataType = "datetime", ColumnDescription = "创建时间")]
        public DateTime tCreateTime { get; set; } = DateTime.Now;
    }
}
